<%@ page language="java" import="java.util.*,com.fescoservice.model.*" pageEncoding="UTF-8"%>
<%@page import="com.fescoservice.config.PropertiesConfig"%>

<%
	String langfilename = "/resources/message";
	String serchOptionSel =  request.getAttribute("SerchOptionSel")==null?"":(String)request.getAttribute("SerchOptionSel");
	String serchOptionValue =  request.getAttribute("SerchOptionValueSel")==null?"":(String)request.getAttribute("SerchOptionValueSel");	
	Customer cust =(Customer) request.getAttribute("Customer");
	List applicationslist =request.getAttribute("applicationslist")==null?new ArrayList():(List<Application>) request.getAttribute("applicationslist");
	
%>
<%@include file="../common/LocaleManager.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Fesco Service</title>
		<link rel="stylesheet" href="<%=path%>/js/jquery/themes/redmond/jquery.ui.all.css">
		<script src="<%=path%>/js/jquery/jquery-1.5.1.js"></script>
		<script src="<%=path%>/js/jquery/external/jquery.bgiframe-2.1.2.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.widget.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.mouse.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.button.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.draggable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.position.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.resizable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.dialog.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.slide.js"></script>
		<script src="<%=path%>/js/jquery/jquery.pager.js"></script>
		<link rel="stylesheet" href="<%=path%>/css/admin.css">
		<link rel="stylesheet" href="<%=path%>/css/hrpage.css">
		<style type="text/css">
			#ValidDateTips{
				z-index: 100; 
				border: 1px solid #b9c9ef; 
				position: fixed;  
				width: 260px; 
				bottom: 2px; 
				display: block; 
				background: white; 
				height: 200px; 
				overflow: hidden; 
				right: 0px; 
			}
			.tipsHeader{
				border: #fff 1px solid; 
				border-bottom: medium none; 
				background-color: rgb(102,153,204); 
				width: 100%; 
				height: 25px; 
				font-size: 12px; 
				overflow: hidden; 
			}
			#tipsButton{
				text-align: center; 
				padding:5px 0 5px 0;
				width: 16px;  
				float: right; 
				color: white; 
				font-size: 12px; 
				overflow: hidden; 
				cursor: pointer; 
				font-weight: bold; 
			}
		</style>
		<script type="text/javascript">
			$(function() {
				function pageClick(pageclickednumber) { 
					document.forms.mainForm.action = '<%=path%>/action/Login.htm?cmd=hrViewList';
					document.forms.mainForm.page.value=pageclickednumber;
					document.forms.mainForm.submit();		
					//$("#pager").pager({ pagenumber: pageclickednumber, pagecount: 15, buttonClickCallback: PageClick 
				}
				$("#btnExcel").button().click(function() {
					document.forms.mainForm.action = '<%=path%>/action/Login.htm?cmd=hrViewList';
					document.forms.mainForm.submit();		
				});
				$("#btnSearch").button().click(function() {
					document.forms.mainForm.action = '<%=path%>/action/Login.htm?cmd=hrViewList';
					document.forms.mainForm.submit();		
				});
				
				
				$("#btnBack").button().click(function() {
					document.forms.mainForm.action = '<%=path%>/action/Login.htm?cmd=hrViewList';
					document.forms.mainForm.submit();		
				});
				
				
				$("#ValidDateTips").effect( 'slide', {'direction':'bottom'}, 500, null )
				$("#tipsButton").click(function() {
					$("#ValidDateTips").effect( 'slide', {'mode':'hide','direction':'bottom'}, 500, null )
				});
			});
			
			function viewContent(applyId){
				document.forms.mainForm.action = '<%=path%>/action/Customer.htm?cmd=viewApplication&Flag=hrLogin';	
				document.forms.mainForm.applyId.value = applyId;
				document.forms.mainForm.submit();
			}
			
			
			
		</script>
	</head>
	<body>
		<div style="float:right">
		<a href="<%=basePath%>action/Login.htm?cmd=logout" ><%=resource.getString("FS_T_LOGOUT") %></a>
	</div>
<div class="content">
<div class="back">
	<div class="menu">
		<ul>
			<li class="on"><a href="http://www.fescoservice.com" title="Search">送件查询</a></li>
			<li><a href="http://www.fescoservice.com" title="Visa, Invitation Letter, Employment License, Work Permit, Foreign Expert Certificate, Residence Permit and Company 

Registration Service...">签证服务</a></li>
			<li><a href="http://www.fescoservice.com" title="Exit-Entry Services for Chinese citizens Including studying abroad, business trips, visit relatives or friends...">出境服务

</a></li>
			<li><a href="http://www.fescoservice.com" title="China Driver License Application&Replacement, Motor Vehicle Registration&Rental One-Stop Service...">涉外车务</a></li>
			<li><a href="http://www.fescoservice.com" title="Report">报表分析</a></li>
		</ul>
	</div>	
<!-- header begins -->
<div class="header">
	<div class="logo">
		<h1><a href="http://www.fescoservice.com/" title="free-css-templates">外企晨光</a></h1>
		<h2><a href="http://www.fescoservice.com/e/" id="metamorph">  Beijing FESCO Chenguang Labor Service Co.,Ltd.</a></h2>
	</div>
	<div class="toptext">
	<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作为北京外企服务集团的成员企业，北京外企晨光劳务服务有限责任公司(Beijing FESCO Chenguang Labour Service Co.,Ltd.)成立于1994年，是为外籍人员、港澳台人员来华工作和生活提供全面的信息咨询及

代理服务、为中国公民提供因私出入境中介服务的专业涉外服务公司。经过多年发展，公司如今已取得国家和相关部门的多项涉外服务授权和合法资质，服务范围拓展到了多个方面。</p>
	<p class="more"><a href="http://www.fescoservice.com/c/ourcompany.php" target="_blank">more...</a></p>
	</div> 	
</div>
<!-- header ends -->
<!-- content begins -->
 <div class="main">
	<div class="right">
		
		
		<div class="wrapContent">	
			
			<form name="mainForm" method="post">
				<input type="hidden" name="page" value="" />

			
			<div class="ui-widget categorylist">

					<table>
						<tr><td width="15%"> 
							<label for="custNameEn">
								<%=resource.getString("FS_T_CUST_NAME_EN")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getCustFirstnameEn()+" "+cust.getCustLastnameEn() %>
						    </td>
							<td width="15%"> 
							<label for="passId">
								<%=resource.getString("FS_T_CUST_PASS_ID")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getPassId() %>
							<input type="hidden" name="SerchOptionSel" class=" ui-corner-all" value="<%=serchOptionSel %>" />	
							<input type="hidden" name="SerchOptionValueSel" class=" ui-corner-all" value="<%=serchOptionValue %>" />
							<input type="hidden" name="custId" class=" ui-corner-all" value="<%=cust.getCustId() %>" />	
							<input type="hidden" name="applyId" class=" ui-corner-all" value="" />	
							
							<input type="hidden" name="companyId" class=" ui-corner-all" value="<%=cust.getCompanyId() %>" />	
							<input type="hidden" name="companyName" class=" ui-corner-all" value="<%=cust.getCompanyName() %>" />	
							<input type="hidden" name="companyAddr" class=" ui-corner-all" value="<%=cust.getCompanyAddr() %>" />	
							</td>
						</tr>
						
						<tr><td width="15%"> 
							<label for="passValidDate">
								<%=resource.getString("FS_T_CUST_PASS_VALID_DATE")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getPassValidDate() %>
							</td>						
							<td width="15%">
							<label for="custNameCn">
								<%=resource.getString("FS_T_CUST_NAME_CN")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getCustNameCn() %>
							</td>
						</tr>
						<tr><td width="15%"> 
							<label for="birthDate">
								<%=resource.getString("FS_T_CUST_BIRTH_DATE")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getBirthDate() %>
							</td>
							<td width="15%"> 
							<label for="phone">
								<%=resource.getString("FS_T_CUST_NAME_PHONE")%>
							</label>
							</td>
							<td width="35%"> 							
							<%=cust.getPhone() %>
							</td>
						</tr>
						<tr><td width="15%"> 
							<label for="companyName">
								<%=resource.getString("FS_T_CUST_COMPANY_NAME")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getCompanyName()%>
							
							</td>
							<td width="15%"> 
							<label for="companyAddr">
								<%=resource.getString("FS_T_COMP_COMPANY_ADDR")%>
							</label>
							</td>
							<td width="35%"> 
							<%=cust.getCompanyAddr()%>
							</td>
						</tr>
						<tr><td width="15%"> 
							<label for="custAddr">
								<%=resource.getString("FS_T_COMP_CUST_ADDR")%>
							</label>
							<td  colspan="3"> 
								<%=cust.getCustAddr()%>
							</td></tr>
						</table>
						
						
						
				<table class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>
								<%=resource.getString("FS_T_APPLICATION_NAME")%>
								<div id="create-menu1"></div>
							</th>
							<th>
								<%=resource.getString("FS_T_APPLICATION_STATUS")%>
								<div id="create-menu2"></div>
							</th>
							<th>
								<%=resource.getString("FS_T_APPLICATION_FINISH_TIME")%>
								<div id="create-menu3"></div>
							</th>		
							<th>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS")%>
								<div id="create-menu3"></div>
							</th>	
							<th>
								<%=resource.getString("FS_T_APPLICATION_CREATOR")%>
								<div id="create-menu3"></div>
							</th>		
							<th nowrap >
								<%=resource.getString("FS_T_OPERATION_COL")%>
								<div id="create-menu3"></div>
							</th>							
						</tr>
					</thead>
					<tbody>
									<% if(applicationslist.size()>0) { 
										Application apply = null;
							for(int i=0;i<applicationslist.size();i++){
								apply = (Application)applicationslist.get(i);
					%>
					
						<tr class="operTR<%=i%2 %>" >
							<td nowrap >					
								
							<%if("A".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_AUTH")%>
							<%}else if("B".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_VISA_INVITATION")%>
							<%}else if("C".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK")%>
							<%}else if("D".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_LIVE_AUTH")%>
							<%}else if("E".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_DELAY")%>
							<%}else if("F".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_DRIVE")%>
							<%}else if("G".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_ABORD")%>
							<%}	%>		
							
							</td>
							<td nowrap >
							<%if("1".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_NOT")%>
							<%}else if("2".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_ING")%>
							<%}else if("3".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_FINISH")%>
							<%}%>
							</td>
							<td nowrap >
								<%=apply.getPreDate() %>
							</td>
							<td nowrap >
							<%if("1".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_NOT")%>
							<%}else if("2".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_FINISH")%>
							<%}%>
							</td>
							<td nowrap >
								<%=apply.getCreatorName() %>
							</td>

							<td nowrap >								
								<a href="javascript:viewContent('<%=apply.getApplyId()%>');" ><%=resource.getString("FS_T_VIEW")%><%=resource.getString("FS_T_CONTENT")%></a>
							</td>						
						</tr>
					<%	}
					}else{ %>

						<tr>
							<td nowrap  colspan="6">
								<%=resource.getString("FS_M_NORESULT")%>
							</td>
						</tr>
					<%} %>
					</tbody>
				</table>
				</div>
			</form>
			<div class="buttonGroupRight">

		   		<div id="btnBack" ><%=resource.getString("FS_T_LIST")%></div>
					
			</div>	



		</div>
		
		
		
	</div>
  <%@include file="../common/left.jsp"%>
</div>
<!--content ends -->

<%@include file="../common/footer.jsp"%>

</div>
</div>



		<script type="text/javascript"	>	
		//import scripts below to pages which display in right frame, for ajust the scroll height
		parent.scroll(0,0);
		parent.setFrameHeight(document.body.scrollHeight+200);
		</script>
	</body>
</html>